package com.geovis.emergency.spd.entity.system.pojo.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 字典树vo封装
 * </p>
 *
 * @author Lonsho
 * @version 1.0
 * @date 2022/6/9
 */
@Data
@ToString(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "DictVO", description = "字典树vo封装")
public class DictVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "字典id")
    private String dictId;

    @ApiModelProperty(value = "字典数据key")
    private String dataKey;

    @ApiModelProperty(value = "字典数据value")
    private String dataValue;

    @ApiModelProperty(value = "上级字典数据key（构建树状使用）")
    private String dataParentKey;

    @ApiModelProperty(value = "排序")
    private Integer idx;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "数据状态")
    private String dataStatus;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @ApiModelProperty(value = "子字典集合")
    private List<DictVO> children;
}
